package com.ly.ocw.entity.weixin;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class WeixinCardTestwhitelist {

	public WeixinCardTestwhitelist() {
	}

	private Long id; //
	private String name; //
	private String openid; //
	private Date createDate; //
	private Long weixinPublicId; // 微信公众号id
	private List<String> nameList;
	private List<String> nameListTmp;

	public List<String> getNameList() {
		nameListTmp = new ArrayList<String>();
		if (nameList != null) {
			for (String string : nameList) {
				if (StringUtils.isNotBlank(string)) {
					nameListTmp.add(string);
				}
			}
		}
		return nameListTmp;
	}

	public void setNameList(List<String> nameList) {
		this.nameList = nameList;
	}

	/**
     *
     **/
	public Long getId() {
		return id;
	}

	/**
	 *
	 **/
	public void setId(Long id) {
		this.id = id;
	}

	/**
     *
     **/
	public String getName() {
		return name;
	}

	/**
	 *
	 **/
	public void setName(String name) {
		this.name = name;
	}

	/**
     *
     **/
	public String getOpenid() {
		return openid;
	}

	/**
	 *
	 **/
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	/**
     *
     **/
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 *
	 **/
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * 微信公众号id
	 **/
	public Long getWeixinPublicId() {
		return weixinPublicId;
	}

	/**
	 * 微信公众号id
	 **/
	public void setWeixinPublicId(Long weixinPublicId) {
		this.weixinPublicId = weixinPublicId;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}